#include <iostream>
#include <cstdlib>
#include <ctime>
#include <string>

std::string const my_id{"065747"};
std::string const my_id_url{"http://acm.sgu.ru/teaminfo.php?id=" + my_id};
std::string const show_volumes_url{"http://acm.sgu.ru/problemset.php?show_volumes"};
std::string const prob_url_prefix{"http://acm.sgu.ru/problem.php?contest=0&problem="};

int const volume_prob_count[6] = {454, 100, 100, 100, 100, 54};
int const volume_offset[6] = {100, 100, 200, 300, 400, 500};

int main()
{
	std::cout << "my solved problems: " << my_id_url << '\n';
	std::cout << "  show all volumes: " << show_volumes_url << '\n';
	std::cout << "please enter a number\n";
	std::cout << "	0. random in all volume\n";
	std::cout << "	1. random in volume [1]\n";
	std::cout << "	2. random in volume [2]\n";
	std::cout << "	3. random in volume [3]\n";
	std::cout << "	4. random in volume [4]\n";
	std::cout << "	5. random in volume [5]\n";

	std::srand(std::time(0));
	int op;
	std::cin >> op;
	auto prob_id = (std::rand() % volume_prob_count[op]) + volume_offset[op];
	std::cout << prob_url_prefix + std::to_string(prob_id) << '\n';
}

